<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListHistorialnotaEJBTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListHistorialnotaEJBEmpty}" rendered="#{historialnotaEJBController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{historialnotaEJBController.items.rowCount > 0}">
                    <h:outputText value="#{historialnotaEJBController.pagination.pageFirstItem + 1}..#{historialnotaEJBController.pagination.pageLastItem + 1}/#{historialnotaEJBController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{historialnotaEJBController.previous}" value="#{bundle.Previous} #{historialnotaEJBController.pagination.pageSize}" rendered="#{historialnotaEJBController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{historialnotaEJBController.next}" value="#{bundle.Next} #{historialnotaEJBController.pagination.pageSize}" rendered="#{historialnotaEJBController.pagination.hasNextPage}"/>&nbsp;
                    <h:dataTable value="#{historialnotaEJBController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_historialnotaEJBPK_notaNIdNota}"/>
                            </f:facet>
                            <h:outputText value="#{item.historialnotaEJBPK.notaNIdNota}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_historialnotaEJBPK_estudianteECodigo}"/>
                            </f:facet>
                            <h:outputText value="#{item.historialnotaEJBPK.estudianteECodigo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_historialnotaEJBPK_grupoGCodigo}"/>
                            </f:facet>
                            <h:outputText value="#{item.historialnotaEJBPK.grupoGCodigo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_historialnotaEJBPK_id}"/>
                            </f:facet>
                            <h:outputText value="#{item.historialnotaEJBPK.id}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_HNFecha}"/>
                            </f:facet>
                            <h:outputText value="#{item.HNFecha}">
                                <f:convertDateTime pattern="MM/dd/yyyy" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_HNFechaRegistro}"/>
                            </f:facet>
                            <h:outputText value="#{item.HNFechaRegistro}">
                                <f:convertDateTime pattern="MM/dd/yyyy HH:mm:ss" />
                            </h:outputText>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_HNporcentaje}"/>
                            </f:facet>
                            <h:outputText value="#{item.HNporcentaje}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_estudianteEJB}"/>
                            </f:facet>
                            <h:outputText value="#{item.estudianteEJB}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_notaEJB}"/>
                            </f:facet>
                            <h:outputText value="#{item.notaEJB}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_habilitacionHId}"/>
                            </f:facet>
                            <h:outputText value="#{item.habilitacionHId}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListHistorialnotaEJBTitle_grupoEJB}"/>
                            </f:facet>
                            <h:outputText value="#{item.grupoEJB}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{historialnotaEJBController.prepareView}" value="#{bundle.ListHistorialnotaEJBViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{historialnotaEJBController.prepareEdit}" value="#{bundle.ListHistorialnotaEJBEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{historialnotaEJBController.destroy}" value="#{bundle.ListHistorialnotaEJBDestroyLink}"/>
                        </h:column>
                    </h:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{historialnotaEJBController.prepareCreate}" value="#{bundle.ListHistorialnotaEJBCreateLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ListHistorialnotaEJBIndexLink}"/>
            </h:form>
        </ui:define>
    </ui:composition>

</html>
